package com.fjh.shop.goods.feign.api;

import com.fjh.shop.common.Result;
import com.fjh.shop.goods.model.vo.GoodsListDetailsVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@Component
@FeignClient(name="shop-goods",contextId = "shop-goods")
public interface GoodsClient {

    @PostMapping("/goods/findGoodsListDetailByIds")
    public Result<List<GoodsListDetailsVO>> findGoodsListDetailByIds(@RequestBody List<Long> ids);
}
